# FROM node:alpine
# COPY /dist/ /dist/
# RUN npm install -g http-server
# WORKDIR /dist/
# CMD [ "http-server", "dist" ]

FROM tatsushid/tinycore-node
  # Copy application code.
COPY /dist/ /dist/
  # Install dependencies.
RUN npm install -g http-server
  # 工作目录
WORKDIR /dist/
  # 工作目录 执行的命令
CMD ["http-server"]
